small bug fixed; first logic system working; todo: show ressources in gui(now log)