public boolean canRatGoForward(MazeRat rat) {
		int offX = 0, offY = 0;
		switch (rat.dir) {
		case EAST:
			offX = 1;
			break;
		case NORTH:
			offY = -1;
			break;
		case SOUTH:
			offY = 1;
			break;
		case WEST:
			offX = -1;
			break;
		default:
			return false;

		}
		try {
			return (maze[rat.position.y + offY][rat.position.x + offX]
					.toString().equals("E"));
		} catch (ArrayIndexOutOfBoundsException ex) {
			return false;
		}

	}