Implemented board rotation functions.