thank you "GreenBeakCrow" for your valuable feedback , actually the controls were inverted only to "add difficulty to master the game",
coming to red boxes they are "boundaries" so when ever u hit them u loose one life and coming to white boxes only the triangular ones are obstacles, while plain white rectangles are platform. I'll change my color scheme soon in future updates.
any how thanks for your concern