Update main.cpp

fixed bug that made the snake collide with the tip of its tail, when the tip should have advanced from its position