tested edge case for getPieceAt