Implement end game