implementation of the first part of play in app_2048