templated move function, game working