added a test and changed Pacmans constructor a bit.