added input and interactive tile rotation