moving main loop to game

now there is one loop to move balls instead of each ball having its own
setInterval loop