Advance not refunded by Landlord

I had paid Rs. 10,000 as an advance in Aug-15 to my landlord and used the flat for 3 years, now I vacant in Aug-18, and asked for settlement, but he denied that time and gave the reason for electricity and water bills will be settled once it generated in 2 months. but after two month passed, I asked to refund back but he is refusing now and giving the reason that I had broken the drawer of Kitchen, bathroom door is in bad condition due to water, Fan is not working fine....per him...flat is in bad condition. although he lives on 2nd floor, and rented out 3rd floor, but he often comes to see us...even when I handed over the Key....he checked every thing and didn't ask anything about this.....but now...all of sudden he raised a lots of reason to not paying back the advance. even he is saying that if I fix all the things then he will payback. But my question is ...does it really tenant responsibility to fix the wooden items before he living (i.e. Bathroom door...off course it will get vet and will be in bad condition...but its not my responsibility to fix the door. or kitchen self....if channel is not working properly... I guess, its landlord responsibility to fix all capital expenditure items as what he is being paid for (rent). Pleas suggest if my above understanding is right and I can take any legal action on this ?