In your gainYen method you have put the part that adds gold per minute in the 'else if' segment. It should actually be outside of it.
Also, if you want a buff that lets the spacebar action repeat, you cant actually change the HoldSpaceBuff, because it always gets set to false. Instead you should make a new boolean that, if true will allow for incrementing the gold regardless of the other boolean.
else if(Greenfoot.isKeyDown("space") && (!once || HoldSpaceBuff)) {
// stuff
once = false;
}



