bool channels are now struct{}. removed some spaces.
fixed solutions to use close() instead of writing to the channel.