adds piece move method and game loop