public void sleep() { while (bed == true) { sleepTime++; } }