Implemented pieceAt() and putPieceAt()

Haven't tested them yet, so don't know if they work or not.