Created PlayerBehavior class and integrated it with Session in place of the actual PlayerEntity class