Added tile contain function