Game logic fully implemented.