storing moves on chain

updated contract to handle moves
chess.js sends moves to chain