gravity processing moved from game.cpp to gravity.cpp