added ace check to scoring function