package de.sebhn.algorithm.excercise1.helper.direction;


import de.sebhn.algorithm.excercise1.helper.Grid;
import de.sebhn.algorithm.excercise1.helper.Position;

public class LeftUp implements Walkable {

  public static Position getNewPosition(Position currentPosition, Grid grid) {
    Position newPosition = new Position(currentPosition.getX() - 1, currentPosition.getY() - 1);
    return newPosition;
  }

  public static boolean isAllowedToWalk(Position newPosition, Grid grid, Position currentPosition) {
    return Diagonal.isAboveOrOn(newPosition) && Diagonal.isAboveOrOn(newPosition)
        && grid.isInGrid(newPosition);
  }

}

@@ -369,17 +369,17 @@
 .getY() 
--
++
  1);%0A   
@@ -566,35 +566,39 @@
 nal.isAboveOrOn(
-new
+current
 Position)%0A      

fix horrible mistakes on leftup (works! :D)