Move line 20 to line 90. That will take care of the first bomb to be spawned.
Change line 40 to 'if (timer > 0)'. It will never reach zero if you stop decrementing the timer when it reaches 30.
Line 49 is meaningless. Remove it and add code at that location to spawn a bomb and reset the timer.