at first it used to be work for 1bit weekly challange, but i didn't finished it in time... so here it go now.