Optimized some stuff and added team reference to player class.