Added top and bottom squares to A*.
Troubleshooting pointers in memory.