Player can sell items, it works, but code is really ugly