Renaming player to me and inserting a few nullchecks.