added lives variable to player component. Made small tidies to code.