Updated code to use address port functions and added wave check for saving a player session
Updated writing player data to handle the case of player leaving before wave 1 finishes