add player and new file null pointer fix