A mininalistic collision detection engine for old school tile games