Implements timer

Implements game timer; updates every frame and stores result in elapsedTime