Fixed bug with push right.  Created func for getcoord