move init to gamestate