To explain I am using pygame to simulate BFS algorithm. There are 3 types of nodes, the start node, end node, and the wall nodes. To make the node the start node hover over