Seperated map graphics and logic
Changed from DFS to BFS