Added wait to game loop
Added mouse click support