added the onEvent field to Player, to keep track of what to do after a load from disk