Added a slight delay to the busy waiting done in main logic loop, fixed error (?) with drawing of board.