Changed instanceof to .getClass().equals(<Class>.class)

Changed this because, as it seems, i didn't actually check for the
runtime class of the object, but the class of the variable. This should
fix this problem.
Updated the Purse class

Basically completely rewritten purse class; now it has some
constructorst, as well as a function that returns how much money there
is in it.