fixed some typos and a major bug preventing score calculation