1st iteration of gameplay code