add player.h and other changes