Java trafficlight implementation for raspberry pi B+