Fixed NPE regarding tile deletion, it was not checking the bounds of the tile
array properly only checking if the id was equal to negative one. Fixed!