Changed a lot in game.cpp, adding functions

add structure to the upcoming functions