private boolean isJunction(Pacman player){
		int x= player.getX();
		int y= player.getY();
		if ((board[x][y-1] == 0) && (board[x][y+1] == 0))
			return false;
		if ((board[x-1][y] == 0) && (board[x+1][y] == 0))
			return false;
		return true;
	}