working code
end game