Update Ant.java

Changed getInstruction to accept parameters instead of getting the values from the record