prevent device from going to sleep

lines added in start and end gameloop