Fixed bugs in potion buying.

Potion buying bug fixed.
Fixed some formatting.