add mathematica and game logic