refactoring
logicOfInsideをcanPlaceInsideと，placePieceInsideに分割