Added end game check logic
Committing scene