I made this game using DragonRuby (that's why the code looks funny to you). https://dragonruby.itch.io/dragonruby-gtk