Added conditions to dialogue system. Probably not working correctly.