added initial version of game panel
added user interaction
switched to active rendering
added sleep time calculation