Implement basic collision detection (haven't tested yet)