Support for multiple canvases and basic collision detection