implemented a scoring system