Sleeps in between checking for getch to avoid 100% cpu usage