Implement basic game functionality.