change score 50 to a number
remove redundant if condition
remove unnecessary sleep