Fixed bug in end Y positions and added timer