added legal moves to output squares