public Coordinates useDoor(Coordinates playerPosition, Coordinates doorPosition) { if (!grid.isDoor(doorPosition)) { return(playerPosition); } return(grid.getOtherDoorSide(playerPosition, doorPosition)); }