working scrabble score implementaion