added the player script and modified score and lives