add gameplay code