code so ugly rn. prolly gotta redo coinflip css cuz popup too buggy