Random map with controllable submarine shooting torpedoes

Map generation is done with rot.js, and filled with border.
Bullet pool.
Basic collision between bullets, walls, submarines.