public ArrayList<MoveMatrix> getMove() {
ArrayList<MoveMatrix> bestMove = new ArrayList<MoveMatrix>();
for (int y = 0; y < m.cy; y++) {
for (int x = 0; x < m.cx; x++) {
MatrixPoint p1 = new MatrixPoint(x, y);
MatrixPoint p2 = new MatrixPoint(x - 1, y);
MoveMatrix m1 = new MoveMatrix(m, p1, p2);
addBest(bestMove, m1);
MatrixPoint p22 = new MatrixPoint(x + 1, y);
MoveMatrix m2 = new MoveMatrix(m, p1, p22);
addBest(bestMove, m2);
MatrixPoint p23 = new MatrixPoint(x, y - 1);
MoveMatrix m3 = new MoveMatrix(m, p1, p23);
addBest(bestMove, m3);
MatrixPoint p24 = new MatrixPoint(x, y + 1);
MoveMatrix m4 = new MoveMatrix(m, p1, p24);
addBest(bestMove, m4);
}
}