Ah now I had 22 points. It is x points - 2^y (not 2*y)
i made it so the score was exponential because i wanted to penalize points more heavily as you made more errors, sorry if it wasnt clear to begin with.