Parse and rotate tiles