issue with null and throw exception on getPieceAt, check out TODO stub