added punishment for too many eggs. should fix the getXY function, and math range error