implement resources buying