Fixed bug handling coords
Added user input