Updated getLegalMoves(), several minor details to take care of before it works.