implemented losing and winning screens