figure out legal moves