Fixed reference issue. Now able to click to create and rotate tiles