Edited buy function

Will no longer return error if user tries to buy something outside the
bar