implement Is_integer

what do you think of this as a check for the three vars that should be integers?  It's not very elegant, but does work.  I don't know how to check the three vars in a loop so it can probably be simplified by someone more experienced.