Fixing null pointer exception in player score