Implemented most of placePiece()