There's an old saying: "Fall down seven times, get up eight."
Everything is subject to improvement over time, no matter how small or insignificant those improvements may seem at the time. This is true of any discipline or activity, be it vidya, tennis, reading or writing.
I am always shocked to look back at my previous excursions into any activity I partake in, because I marvel at just how far I've come and how much I've improved. I can look back at poetry I wrote a year ago and remark on how much my use of language and syntax has been refined since then, and I am always excited by how much better I can become in future.
It's not an easy process to improve, and confidence will only come if you believe that you're deserving of it. Thing with confidence is, it's all in your head: if you don't feel like you're improving or that you're absurdly outmatched from the get-go, you'll get discouraged and psyche yourself out. So as you train, be critical of your performance and understand exactly what needs to be worked on. Simultaneously, focus on areas where you have noticeably performed better, and let that inspire you to train harder and get better results.
The satisfaction you get at doing a job well and realising your improvements is a wonderful feeling, and if you bear in mind that you can and always will improve, your confidence will start to improve with it. Just do your best and always strive to be better. When you start to think that you're getting better and you can play at a higher level than before, your confidence will follow suit, and you'll be able to do even better next time for sure!