I created this for a different game I am creating but the mouse and tile lock due not match up. Thanks to @Thehexbladewarlock for some understanding on grid lock code An adaption of color changing and the rule to build these structures