shortened  checkIfPieceCanBePlaced