reduced warning; moved game-logic to gameSimulator