Got messaging system working properly, need to reimplement window system