Everything until the battle is done in the backend and front end