Improved exception handling and also fixed some warnings.

Signed-off-by: retep998 <retep998@verizon.net>
Slowly reworking sprites

Signed-off-by: retep998 <retep998@verizon.net>
Now draws tiles once again

Signed-off-by: retep998 <retep998@verizon.net>
client: Update source list in CMakeLists.txt
client: #include <algorithm> in layer.cpp

std::sort is contained by <algorithm>