new init function for board and rock movement