public boolean isLegalMoveTwo(int pieceNumber){
	
	if (board.getBoard()[pieceNumber].getPieceType()==1 || board.getBoard()[pieceNumber].getPieceType()==2){
		
		if (board.getBoard()[pieceNumber].getX()==(BOARDSIZE-board.getBoard()[pieceNumber].getLength()+1))
			return false;
	}
	
	else{
		if (board.getBoard()[pieceNumber].getY()==(BOARDSIZE-board.getBoard()[pieceNumber].getLength()+1))
			return false;
	}
	int position = board.getBoard()[pieceNumber].getPositions()[board.getBoard()[pieceNumber].getPositions().length-1];
	if (board.getBoard()[pieceNumber].getPieceType()==1 || board.getBoard()[pieceNumber].getPieceType()==2){
		
	
	if (board.getPositions().contains(position+1))
		return false;
	}
	else{
		if (board.getPositions().contains(position+BOARDSIZE))
			return false;
	}
	return true;
}