added lives and score functionality