Server works now, but some small bugs need to be fixed