Check whether the apple and the snake collide if they collide make a new apple otherwise return the old apple