Added UI and fixed various functions

I just added the basic part of the UI on the client side, and fixed some of the functions so they work correctly. The code also looks a little neater

AttackBoard still isn't implemented