lookupPiece に player 引数を追加
lookupPiece を書き換えた