Changed Board::positions to be a single dimentional array in order to increase performance
Changed Board::getPossibleMoves to be more efficient