Added function to keep score and a score box