Drag the red square away from the obstacles and don't touch them!!! Don't even touch the sides. When you get hit, the red square tells you how many seconds you lasted.
I took the idea of this game from the internet: http://members.iinet.net.au/~pontipak/redsquare.html