public boolean isLegalMoveOne(int pieceNumber){
		
		if (board[pieceNumber].getPieceType()==1 || board[pieceNumber].getPieceType()==2){
			
			if (board[pieceNumber].getX()==0)
				return false;
		}
		
		else{
			if (board[pieceNumber].getY()==0)
				return false;
		}
		int position = board[pieceNumber].getPositions()[0];
		if (board[pieceNumber].getPieceType()==1 || board[pieceNumber].getPieceType()==2){
			
		
		if (positions.contains(position-1))
			return false;
		}
		else{
			if (positions.contains(position-BOARDSIZE))
				return false;
		}
		return true;
	}