changed mechanism of rotate in select, updated shapes' rotate() accordingly