Moving word logic to the server

Gives a consistent and shorter response