move stuff to gamelogic