tested for no negative coordinates as input for getPieceAt