Added save function, also stores players position