Implemented collision detection

Also made programs title configurable, made program minimizable .