added a check on judgement to make sure i can afford the item