added in board rotation, fixed orientation