First code for game