changed gamemode to gamestate