game loop update

game does not loop as normal when the window is not in focus
controls are cleared when the game is not in focus
removed get predicted fps because it is useless and didn't work