added win checking, rendering of moves