snake.cpp the main cpp

This is the main cpp file. I know it looks messy so I appreciate any suggestion.