Coded update function in GameObject and reflected changes into Player header