public GameDir getPlayerDirection() {
    	if (player.getX() > this.getX() && panel.passable(gridX() + 1, gridY())) {
    		return GameDir.RIGHT;
    	}
    	if (player.getY() < this.getY() && panel.passable(gridX(), gridY() - 1)) {
    		return GameDir.UP;
    	}
    	if (player.getX() < this.getX() && panel.passable(gridX() - 1, gridY())) {
    		return GameDir.LEFT;
    	}
    	if (player.getY() > this.getY() && panel.passable(gridX(), gridY() + 1)) {
    		return GameDir.DOWN;
    	}
    	return GameDir.NONE;
    }