Fixed addTank method to check for bounds