Fixed The apple bug, where the apple could appear at the tail. 

The problem was the print function, where it printed the apple first, and then checked if the apple is on top of the tail