added little fix for getEmptySlots function
removed useless function turnOn