Moved snake related code to snake.cpp instead of main.cpp
Fixed merging conflict