created end game conditions