Updated player code