rudimentary collision detection (for platforms at least)