Barrier following player / camera

After every loop iteration, put Sleep(0.0). Otherwise your game will freeze