Don't give up! You're very close to making a complete program! Many developers face hardships when making games. Some have even lost the entire source code to their game and had to rewrite it from scratch. And yet they've made awesome games anyway. Just keep programming your game. You'll finish it eventually!