total points computation done but with bugs