fixed collision and made sure rect apples won't spawn on top of each other or too close to the edges or on top of the snake