Help me developing this logic

hi guys

I wanna develop this game…after doing 3-4 days of r&d on it i still wont able to find its logic…guys i really need ur help on me on developing its logic. i am not asking for its code just guide me to the right way.