add class player and class player_model. refractor code.