end game rules implementation