Add game logic.

Only APIs, no content.