Added boundaries with collision. Separated main js from html file.