added previous button functionality and score tracking updates