Forgot to initialize lastTime to 0

Delta time was not correctly calculated on the first frame and would
crash. Now fixed.