implemented gamestage