Still need to fix undo after win

Small bug that needs to be polished. Should check on multiple sized
boards. (also, removed hardcoded size of some of the arrays, Index out
of Bounds will occur)