Finished most of the code. Just horrible bugs left.