Is it legal for them to do this since they were accepting my fifty dollar payments?
Yes. Your arrangement was for $200. Accepting partial payment does not preclude them from taking action on your breach of the agreement.