Writing and int into phase_number and not a string
Using parseInt to ensure phase_number is an int