function WinKeyPressed(key) if key == "r" then RestartGame() _G.GAMESTATE = "GAME" love.load() end end