Rewrote most the code, added server backend at it works