Added sleeping

Added timer onto game loop to handle sleeping