Fixed a bug involving getPieceAt