templated the move function, game working, almost finished