Made the updating time-based

The game will now run at the same speed no matter what the fps is