nextboard is what the board will look like on the next step in the simulation start with copy of the current step' board nextboard copy copy(board run single simulation step for each ant for ant in ants if board get((ant[' ']ant[' '])false=true nextboard[(ant[' ']ant[' '])false turn clockwise if ant['direction'=north ant['direction'east elif ant['direction'=east ant['direction'south elif ant['direction'=south ant['direction'west elif ant['direction'=west ant['direction'north else nextboard[(ant[' ']ant[' '])true turn counter clockwise if ant['direction'=north ant['direction'west elif ant['direction'=west ant['direction'south elif ant['direction'=south ant['direction'east elif ant['direction'=east ant['direction'north changedtiles append((ant[' ']ant[' ']) move the ant forward in whatever direction it' facing if ant['direction'=north ant[' '- if ant['direction'=south ant[' '+ if ant['direction'=west ant[' '- if ant['direction'=east ant[' '+ if the ant goes past the edge of the screen it should wrap around to other side ant[' 'ant[' 'width ant[' 'ant[' 'height changedtiles append((ant[' ']ant[' ']) board nextboard def displayboard(boardantschangedtiles) """displays the board and ants on the screen the changedtiles argument is list of (xytuples for tiles on the screen that have changed and need to be redrawn "" langton' ant