public void UpdateSpritePosition(ITileTypeFactory tileTypeFactory, ISprite sprite, IMaze gameMaze) { var(x, y) = GetNewPosition(sprite, gameMaze); if (!_gameLogicValidator.HasCollidedWithWall(tileTypeFactory, (x, y), gameMaze)) { sprite.SetNewPosition(x, y); } }