Help with combining 2 sketches together.

Everyone please disregard the first code I posted in the original post.