Getting sloppy and tired now, I think I ironed out most bugs though!