refactored player model and rewrote online status