added arrays for holding all the figures of a color
improved getAllPossibleMoves