reset function for game objects (pac-man/ghost)