Moved/optimized address calculation code for mario tiles