Added use of delta to seperate framerate from game logic