Fixed error checking bug for bamboo tiles