added player code