For anyone else who didn't make the connection, the buildings are for the whole map, so if you buy the one making tors cheaper on the first stage they're cheaper on every stage
everybody yelling about the game being copyright infringement, first, kongregate screens all the games before they upload them, second, the copyright is probably up by now so stop you wining!
To add more randomness to it make a variable equal to a random number (between say 1 and 50) and say whenever it is something (say 2) spawn an enemy, or bullet, or whatever. If you do this instead of just a counter it will be more randomized.
Hope this helps.