Implement start and end game functionality