working, border drawing needs a bit of tweaking.