Changed WebSocket adress to localhost
Use reverse() to swap coordinates