Packman Excersise from java programming course