Calculate legal moves

Calculates and returns all legal moves for both players. For debugging,
it also draws each of the legal moves, one at a time. That functionality
will be removed later.