Refacteroing: moved ball calculation to game controller