Added more to the isFrameOver method. Almost finished.