public void genAllMoves(){

		int basic = 0, king = 0;//keeps a record of the value of a piece for black or white
		deleteList = new ArrayList<Move>();

		if (colourToPlay == 1){
			basic = 2; king = 4;
		}
		else{
			basic = -2; king = -4;
		}

		for (int row = 0; row < EDGE_LENGTH; row++){
			for (int col = 0; col < EDGE_LENGTH; col++){
				if (board [row][col] == basic || board [row][col] == king)
					moveGenerator(row, col, board, board [row][col]);
			}
		}

		for (int i = 0; i < deleteList.size(); i++){

			mList.containsAndDeletes(deleteList.get(i).getFromRow(), deleteList.get(i).getFromCol(), deleteList.get(i).getToRow(), deleteList.get(i).getToCol(), deleteList.get(i).getMoveBoard());

		}

		for (int i = 0; i < mList.getSize(); i++){
			if (mList.getMove(i).getLevel() == maxMoveLevel){//Keep move in list
				//System.out.println(mList.getMove(i));
			}
			else
				mList.remove(i);
		}
	}